﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Windows.Controls.Ribbon;
using System.Windows;

namespace OODCRM.ViewModel
{
    public static partial class RibbonModel
    {

        #region ViewModel

        public static TabData TabHome
        {
            get
            {
                lock (_lockObject)
                {
                    string Str = "TabHome";

                    if (!_miscData.ContainsKey(Str))
                    {
                        TabData data = new TabData("Home")
                        {
                            KeyTip = "H",
                            IsEnabled = true,
                        };
                        _miscData[Str] = data;
                    }

                    return _miscData[Str] as TabData;
                }
            }
        }

        public static TabData TabDoiTuong
        {
            get
            {
                lock (_lockObject)
                {
                    string Str = "TabDoiTuong";

                    if (!_miscData.ContainsKey(Str))
                    {
                        TabData data = new TabData("Đối tượng")
                        {
                            KeyTip = "DT",
                            IsEnabled = true,
                        };
                        _miscData[Str] = data;
                    }

                    return _miscData[Str] as TabData;
                }
            }
        }

        public static TabData TabDanhMuc
        {
            get
            {
                lock (_lockObject)
                {
                    string Str = "TabDanhMuc";

                    if (!_miscData.ContainsKey(Str))
                    {
                        TabData data = new TabData("Danh mục")
                        {
                            KeyTip = "DM",
                            IsEnabled = true,
                        };
                        _miscData[Str] = data;
                    }

                    return _miscData[Str] as TabData;
                }
            }
        }

        #endregion ViewModel
    }
}
